package com.wuhongyu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.wuhongyu.entity.User;
import com.wuhongyu.entity.UserExample;
import com.wuhongyu.mapper.UserMapper;
import com.wuhongyu.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	
	@Override
	public List<User> selectAll() {
		UserExample example = new UserExample();
		example.createCriteria();
		PageHelper.startPage(1, 3);
		List<User> userList = userMapper.selectByExample(example);
		return userList;
	}



}
